﻿namespace DevTools.AndroidLayoutHelper
{
    public class LayoutElement
    {
        public LayoutElement(string name, string id)
        {
            Name = name;
            Id = GetPureId(id);
        }

        private string GetPureId(string id)
        {
            return id.Split('/')[1].Trim();
        }

        public string Name { get; set; }

        public string Id { get; set; }

        public override string ToString()
        {
            return Name + " : " + Id;
        }
    }
}